import {Effect} from "../../IEffectContainer";
import {ActorActionManager} from "../../../manager/ActorActionManager";

export class baojilv extends Effect {
    logLevel = "baojilv"

    apply(target: ActorActionManager) {
        super.apply(target)
        this.log.log(this.logLevel, '数据处理')
        this.remove(target)
        target.actorProperty.critRate=this.num[this.level-1]
    }

    //不会调用
    remove(target: ActorActionManager) {
        this.log.log("test_critRate", `当前暴击率${target.actorProperty.critRate},原始暴击率${target.data.critRate}`);
        target.actorProperty.critRate=target.data.critRate
    }
}
